package com.lxs.mall.service;

import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.IOException;

/**
 * @author 小松
 */
public interface UploadService {
    /**
     * @param fileDirectory
     * @param file
     * @param destFile
     */
    void createImage(File fileDirectory, MultipartFile file, File destFile);

    /**
     * @param file
     * @return
     */
    String uploadFile(MultipartFile file);

    /**
     * @param file
     * @return
     */
    String getNewFileName(MultipartFile file);

    /**
     * @param file
     * @return
     * @throws IOException
     */
    String uploadImage(MultipartFile file) throws IOException;
}
